.listing_actions
  %table
    %tr
      -if show_comments_link
        %td
          =image_tag("icon_comment.gif")  
        %td
          -comments_text = t(:comments)
          -if video.comments.count > 0
            -comments_text += " (#{video.comments.count})"
          =link_to comments_text ,video_url(video)
        %td
          .listing_action_separator
      %td
        =image_tag("icon_like.gif")
      %td
        .div{:id=>"vote_link_#{video.id}"}
          %a{:href=>"#",:onclick=>"voteVideo('#{video.id}','#{vote_video_url(video,{:canvas=>false})}');return false;"} 
            = t(:vote)
      %td
        .div{:id=>"video_votes_#{video.id}"}
          -if video.votes.count ==1
            (#{sprintf(I18n.t(:votes_info),video.votes.count)} )
          -elsif video.votes.count > 1
            (#{sprintf(I18n.t(:votes_info).pluralize,video.votes.count)} )
      %td
        .div{:id=>"loading_indicator_#{video.id}",:style=>"display:none"}
          =image_tag("ajax-loader.gif")
      %td
        .listing_action_separator
      %td
        %fb:share-button{:class=>"meta"}
          %meta{:name=>"title", :content=>"#{video.title}"}
          %meta{:name=>"description", :content=>"#{video.description}"}
          %link{:rel=>"target_url", :href=>video_url(video)}
          %link{:rel=>"image_src", :href=>"http://i3.ytimg.com/vi/#{video.video_id}/default.jpg"}
          %link{:rel=>"video_src", :href=>"http://www.youtube.com/v/#{video.video_id}"}
          %meta{:name=>"video_height", :content=>"258"}
          %meta{:name=>"video_width", :content=>"461"}
          %meta{:name=>"video_type", :content=>"application/x-shockwave-flash"}
      %td
        .listing_action_separator
      %td
        -if (@current_user and video.user.id == @current_user.id) or (@current_user and @current_user.admin)  
          =link_to t(:remove), [video.user,video], :method=>:delete, :confirm=>"#{t(:confirm_delete_video)}"